<select name="extid">
	<option value="">请选择分机</option>
	<#if extentionList??>
	<#list extentionList as ext>
	<option value="${ext.id!''}" <#if userData?? && userData.extid?? && userData.extid == ext.id>selected="selected"</#if>>${ext.extention!''}<#if ext.username??>（${ext.username!''}）</#if></option>
	</#list>
	</#if>
</select>
<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
  form.render(); //更新全部
 
});
</script>